import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'

// vue 启动主文件 
console.log("vue lanauch ")

Vue.config.productionTip = false

import "./utils/golbal"
import "@/assets/styles/index.scss";

import ElementUI from "element-ui"
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI)     // 全局注册声明 element this.$message 调用 

import router from "./router"

import {axios} from "@/utils/axios"
Vue.prototype.$axios = axios;   // 配置全局 Vue的原型属性  this.$axios 

import VueQuillEditor from 'vue-quill-editor'
// quill 富文本样式
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
Vue.use(VueQuillEditor)

import store from "@/store"

new Vue({
  store,   // 挂载到 根实例  this.$store 
  router, // 挂载到根实例  this.$router
  render: h => h(App)   // 把App 当做根组件载入 根实例  
}).$mount('#app')
